package com.itawei.d1_generic;

import java.util.ArrayList;

/**
 * 泛型方法的使用
 */

public class GenericDemo1 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        ListUtil.addAll(list,"陈平安","宁姚","齐静春");
        System.out.println(list);
        ArrayList<Integer> list2 = new ArrayList<>();
        ListUtil.addAll(list2,1,2,3);
        System.out.println(list2);
    }
}
